package com.sanyang.lawyer.service.system;

import com.sanyang.lawyer.entity.System_authority;
import com.sanyang.lawyer.mapper.system.System_authorityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lawyer
 * @description: 权限表事务
 * @author: Mis.Feng
 * @create: 2019-10-11 11:47
 **/

@Service
public class AuthorityService {
    @Autowired
    private System_authorityMapper aMapper;

    public List<System_authority> select(){
        return aMapper.select();
    }
    public List<System_authority> updateAut(int id){
        return aMapper.updateAut(id);
    }
    public System_authority getById(int id){
        return aMapper.getById(id);
    }
    public List<System_authority> getRoleAu(int id){
        return aMapper.getRoleAu(id);
    }
    public void deleteRoleAut(int tableRoleid){
        aMapper.deleteRoleAut(tableRoleid);
    }
    public void insertAut(int roleid,int authorityid){
        aMapper.insertAut(roleid,authorityid);
    }
}
